﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Possan.MySQL.SqlServerCodeGenerator
{
	class Program
	{
		static void Main(string[] args)
		{

			if (args.Length  ==  1)
			{
				ProjectLoader pl = new ProjectLoader();
				pl.Filename = args[0];
				pl.Run();
			}
			else
			{
				Console.WriteLine("Syntax: Possan.MySQL.SqlServerCodeGenerator [project.xml]");
			}

/*
			Generator g;
			
			g = new Generator();
			g.ConnectionString = "Data Source=localhost;Initial Catalog=dev_zitiz20090904-1;Integrated Security=False;User ID=zitiz;Password=zitiz;Pooling=false;Min Pool Size=50;Max Pool Size=100;";
			g.IncludeDeletes = true;

			g.Table = "aspnet_Roles";
			g.Overwrite = true;
			g.OutputFile = "c:\\temp\\allt5.sql";
			g.Run();

			g.Table = "aspnet_Users";
			g.Overwrite = false;
			g.OutputFile = "c:\\temp\\allt5.sql";
			g.Run();

			g.Table = "cProperty";
			g.Overwrite = false;
			g.OutputFile = "c:\\temp\\allt5.sql";
			g.Run();
			*/
		}

		
	}
}
